public File getConfigurationDirectory() throws AccessControlException {
if (configurationDirectory == null) {
if (configurationDirectoryPath == null) {
throw new AccessControlException("Configuration directory not set!");
}
Source source = null;
SourceResolver resolver = null;
File directory;
try {
getLogger().debug(
"Configuration directory Path: [" + configurationDirectoryPath + "]");
resolver = (SourceResolver) getManager().lookup(SourceResolver.ROLE);
source = resolver.resolveURI(configurationDirectoryPath);
getLogger().debug("Configuration directory URI: " + source.getURI());
directory = new File(new URI(NetUtils.encodePath(source.getURI())));
} catch (Exception e) {
throw new AccessControlException(e);
} finally {
if (resolver != null) {
if (source != null) {
resolver.release(source);
}