/*
(non-Javadoc)
@see org.exoplatform.services.jcr.ext.resource.NodeRepresentation#getProperty(java.lang.String)
320589
public HierarchicalProperty getProperty(String name) throws RepositoryException
   {

      for (HierarchicalProperty p : properties)
      {
         if (p.getStringName().equals(name))
            return p;
      }
      return null;

      // if ("jcr:primaryType".equals(name) || "jcr:mixinTypes".equals(name) ||
      // "jcr:data".equals(name)
      // || "jcr:uuid".equals(name))
      // return null;
      //
      // String value;
      // try {
      // value = node.getProperty(name).getString();
      // } catch (PathNotFoundException e) {
      // return null;
      // }
      // String ns = ((ExtendedSession) node.getSession()).getLocationFactory()
      // .parseJCRName(name)
      // .getNamespace();
      // return new HierarchicalProperty(name, value, ns);

   }
601980
public JsonNode getPropertyValue(final JsiiObjectRef objRef, final String property) {
        ObjectNode req = makeRequest("get", objRef);
        req.put("property", property);

        return this.runtime.requestResponse(req).get("value");
    }
945525
public static Object getProperty(final Object object, final String property) {
		Class[] paramTypes = new Class[]{};
		Object[] params = new Object[]{};
		String methodName = "get" + property.substring(0, 1).toUpperCase() + property.substring(1);

		return ReflectionUtil.invokeMethod(object, methodName, params, paramTypes);
	}
1338696
@Override
    public String getProperty(String name) {
        try {
            if (name.startsWith(PREFIX) && initPropertyService()) {
                return propertyService.getValue(name.substring(PREFIX_LEN), null);
            }
        } catch (Exception e) {
            log.error("Exception getting property.", e);
        }
        
        return null;
    }
887956
String getProperty(String key) {
        String value = properties.get(key);
        if (value == null) {
            throw new RuntimeException("No property value found for key " + key);
        }
        return value;
    }
724643
@SuppressWarnings("unchecked")
    public static <T> T getProperty(String name) {
        return (T) getRequest().getProperty(name);
    }
402316
public String getGetterName(String propertyName, JType type, JsonNode node) {
        propertyName = getPropertyNameForAccessor(propertyName, node);

        String prefix = type.equals(type.owner()._ref(boolean.class)) ? "is" : "get";

        String getterName;
        if (propertyName.length() > 1 && Character.isUpperCase(propertyName.charAt(1))) {
            getterName = prefix + propertyName;
        } else {
            getterName = prefix + capitalize(propertyName);
        }

        if (getterName.equals("getClass")) {
            getterName = "getClass_";
        }

        return getterName;
    }
324959
public String getProperty(String strProperty)
    {
        if (this.getTask() != null)
            return this.getTask().getProperty(strProperty);   // Try app
        return null;
    }
1226475
@SuppressWarnings("unchecked")
    @Override
	public <T> T getProperty(Object key) {
	    return (T) getZone().getProperty(key);
	}
1048022
public String getStringProperty(final String name) {
        String prop = null;
        try {
            prop = System.getProperty(name);
        } catch (final SecurityException ignored) {
            // Ignore
        }
        return prop == null ? props.getProperty(name) : prop;
    }
14528
private String getProperty(String propertyName) {
            return propertyName == null ? null : (String) getPropertyValue(propertyName);
        }
930132
String getProperty(String property, String def) {
    return System.getProperty(property, def);
  }
1197892
@SuppressWarnings("unchecked")
	@Override
	public <T> T getProperty(Object key, Class<T> clazz) {
	    return (T)getProperty(key);
	}
1180937
public String getProperty(String strProperty)
    {
        String strValue = null;
        if (m_properties != null)
        {   // Try local properties
            if (m_properties.get(strProperty) != null)
                strValue = m_properties.get(strProperty).toString();
            if ((strValue != null) && (strValue.length() > 0))
                return strValue;
        }
        if (this.getApplication() != null)
            strValue = this.getApplication().getProperty(strProperty);  // Try app
        return strValue;
    }
584177
private static String getProperty(Properties extensionProperties, String propertyName) {
        if (extensionProperties.containsKey(propertyName)) {
            Object value = extensionProperties.get(propertyName);
            if (value != null) {
                return value.toString();
            }
        }

        return null;
    }
110229
public String getProperty(String prop)
    {
        // assuming Properties are initialized with this call
        return prop != null ? getProperties().getProperty(prop) : null;
    }
1003192
public PropertyData getProperty(String name)
   {
      return properties == null ? null : properties.get(name);
   }