System.out.println("returning content");
	protected byte[] getData() throws XMLDBException {		if (file != null) {			if (!file.canRead())				throw new XMLDBException(					ErrorCodes.INVALID_RESOURCE,					"failed to read resource content from file " + file.getAbsolutePath());			try {				byte[] chunk = new byte[512];				ByteArrayOutputStream out = new ByteArrayOutputStream();				FileInputStream in = new FileInputStream(file);				int l;				do {					l = in.read(chunk);					if (l > 0)						out.write(chunk, 0, l);				} while (l > -1);				in.close();				byte[] data = out.toByteArray();				content = new String(data);				file = null;				return data;			} catch (IOException e) {				throw new XMLDBException(					ErrorCodes.INVALID_RESOURCE,					"failed to read resource content from file " + file.getAbsolutePath(),					e);			}		} else if(content != null)			try {				System.out.println("returning content");				return content.getBytes("UTF-8");			} catch (UnsupportedEncodingException e) {			}		return null;	} 