throw new NotFoundException("Resource '" + resourceName + "'");
}
final ConnectorFacadeProxy connector = connLoader.getConnector(resource);
final ConnectorObject connectorObject = connector.getObject(ObjectClass.ACCOUNT, new Uid(objectId), connector.
getOperationOptions(resource));
if (connectorObject == null) {
throw new NotFoundException("Object " + objectId + " not found on resource " + resourceName);
}
final Set<Attribute> attributes = connectorObject.getAttributes();
if (AttributeUtil.find(Uid.NAME, attributes) == null) {
attributes.add(connectorObject.getUid());
}
if (AttributeUtil.find(Name.NAME, attributes) == null) {
attributes.add(connectorObject.getName());
}
auditManager.audit(Category.resource, ResourceSubCategory.getObject, Result.success,
"Successfully read object " + objectId + " from resource " + resourceName);