public DirectoryDeleteConstraint getDeleteConstraint() { try { DirectoryDeleteConstraint instance = klass.newInstance(); if (properties != null) { instance.setProperties(properties); } return instance; } catch (InstantiationException e) { throw new DirectoryException(e); } catch (IllegalAccessException e) { throw new DirectoryException(e); } }