Well, in this case, I don't use the Alfresco API. Only REST calls. My code is outside a webscript. Is the reason to use /alfresco/service/api/metadata. Works ok, but for a best performance, I want to know if it's the best solution to obtain the name.