/** * Get the equivalent property name for the given getter. * * @param getterName The getter * @return The property name */ public static String getPropertyNameForGetter(String getterName) { if (isGetterName(getterName)) { int prefixLength = 0; if (getterName.startsWith("get")) { prefixLength = PREFIX_LENTGH; } if (getterName.startsWith("is")) { prefixLength = IS_LENTGH; } return decapitalize(getterName.substring(prefixLength)); } return getterName; }