try {
getResourceProvider(instanceName).createResource(resourceId, propertyMap);
} catch (org.apache.ambari.view.NoSuchResourceException e) {
throw new NoSuchParentResourceException(e.getMessage(), e);
} catch (org.apache.ambari.view.UnsupportedPropertyException e) {
throw new UnsupportedPropertyException(getResourceType(e), e.getPropertyIds());
} catch (org.apache.ambari.view.ResourceAlreadyExistsException e) {
throw new ResourceAlreadyExistsException(e.getMessage());
} catch (Exception e) {
throw new SystemException(e.getMessage(), e);
}