code: protected static Properties getComponentProperties(String componentPrefix, Properties properties) {
          Properties result = new Properties();
          if (null != componentPrefix) {
              int componentPrefixLength = componentPrefix.length();
              for (String propertyName : properties.stringPropertyNames()) {
                  if (propertyName.startsWith(componentPrefix)) {
                      result.put(propertyName.substring(componentPrefixLength), properties.getProperty(propertyName));
                  }
              }
          }
          return result;
      }
docs: Returns only properties that start with componentPrefix, removing this prefix.
  
  @param componentPrefix a prefix to search
  @param properties      properties
  @return properties that start with componentPrefix