title: Get property of person Alfresco in JAVA
body: <p>I'm using Alfresco 5.1 Community, and i'm trying to get a property value of a current person logged for example, in the user I have:</p>
  
  <pre><code> "{http://www.someco.org/model/people/1.0}customProperty"
  </code></pre>
  
  <p>How can I obtain this in java?</p>
  
  <p>Is a custom property, so, in <a href="http://localhost:8080/alfresco/service/api/people" rel="nofollow">http://localhost:8080/alfresco/service/api/people</a> it does not appear. How can I do this?</p>
  
  <p>I try this to obtain at least nodeRef:</p>
  
  <pre><code>protected ServiceRegistry getServiceRegistry() {
          ProcessEngineConfigurationImpl config = Context.getProcessEngineConfiguration();
          if (config != null) {
              // Fetch the registry that is injected in the activiti spring-configuration
              ServiceRegistry registry = (ServiceRegistry) config.getBeans().get(ActivitiConstants.SERVICE_REGISTRY_BEAN_KEY);
  
              if (registry == null) {
                  throw new RuntimeException("Service-registry not present in ProcessEngineConfiguration beans, expected ServiceRegistry with key" + ActivitiConstants.SERVICE_REGISTRY_BEAN_KEY);
              }
  
              return registry;
          }
          throw new IllegalStateException("No ProcessEngineConfiguration found in active context");
      }
  
      public void writeToCatalina() {
          PersonService personService = getServiceRegistry().getPersonService();
          System.out.println("test");
          String name = AuthenticationUtil.getFullyAuthenticatedUser();
          System.out.println(name);
          NodeRef personRef = personService.getPerson(name);
          System.out.println(personRef);
      }
  </code></pre>
  
  <p>But I got: </p>
  
  <blockquote>
    <p>No ProcessEngineConfiguration found in active context</p>
  </blockquote>
  
  <p>Help me !</p>