class StringUtilities {

    public static Map<String, String> getSubProperties(Properties input, String prefix)
    {
        final Map<String, String> result = new HashMap<>();
        for (final Entry<Object, Object> entry : input.entrySet())
        {
            final String key = (String)entry.getKey();
            if (key.length() > prefix.length() && key.startsWith(prefix))
            {
                result.put(key.substring(prefix.length()), (String)entry.getValue());
            }
        }
        return result;
    }

    private  StringUtilities();

}