java.util.Properties aux = new java.util.Properties();
try {
aux.load(new InputStreamReader(resourceStream = resource.openStream(), charset));
} catch(IOException e) {
throw new ResourceErrorException(e, resource.toString());
} finally {
try {
if (resourceStream != null) resourceStream.close();
} catch (IOException ignore) {}
}