public static String getPropertyName(String absProperty) {
    int lastPathSep = absProperty.lastIndexOf(EXTERNAL_PATH_SEP);

    return lastPathSep == -1 ? absProperty : absProperty.substring(lastPathSep + 1);
  }
Helper to get a property name from a string.

@param absProperty  the fully qualified property

@return the property name
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/PropertyHelper.java