Lets move the logic of "replaceAll(PORTLET_SUFFIX_PATTERN) down into the getPortletNameFromClassName method itself.