Attributes attrs = createAttributesFromRecords(records);
result = DirectoryManager.getObjectInstance(
resolvedCtx, name, this, environment, attrs);
} catch (SecurityException e) {
NoPermissionException e2 =
new NoPermissionException(e.getMessage());
e2.setRootCause(e);
throw e2;
} catch (NamingException e) {
throw e;
} catch (Exception e) {
NamingException ne = new NamingException(e.getMessage());