}
public boolean canCreateChild() {
try {
final IProject project = getProject();
final Filter filter = ProjectUtil.loadFilter(project);
final String relativeFilePath = getJcrPath();
// final Repository repository = Activator.getDefault().getRepositoryFactory().newRepository(null);//ServerUtil.getRepository(null, null);
// final RepositoryInfo repositoryInfo = repository.getRepositoryInfo();
// if (repositoryInfo==null) {
// return false;
// }
if (filter==null) {
Activator.getDefault().getPluginLogger().error("No filter.xml found for "+project);
return true;
} else {
final FilterResult result = filter.filter(ProjectUtil.getSyncDirectoryFile(project), relativeFilePath);
return result==FilterResult.ALLOW;
}
} catch (CoreException e) {
Logger logger = Activator.getDefault().getPluginLogger();
logger.error("Could not verify child node allowance: "+this, e);