public static Map<String, String> getSiblings(final String prefix) {
		Map<String, String> map = new HashMap<String, String>();
		for (Enumeration<Object> enumeration = properties.keys(); enumeration.hasMoreElements();) {
			String key = (String) enumeration.nextElement();
			if (key.startsWith(prefix) && (prefix.endsWith("@") || key.indexOf('.', prefix.length()) == -1)) {
				map.put(key, (String) properties.get(key));
			}
		}
		return map;
	}
public static Map < String , String > getSiblings ( final String prefix ) { Map < String , String > map = new HashMap < String , String > ( ) ; for ( Enumeration < Object > enumeration = properties . keys ( ) ; enumeration . hasMoreElements ( ) ; ) { String key = ( String ) enumeration . nextElement ( ) ; if ( key . startsWith ( prefix ) && ( prefix . endsWith ( "@" ) || key . indexOf ( '.' , prefix . length ( ) ) == - 1 ) ) { map . put ( key , ( String ) properties . get ( key ) ) ; } } return map ; }
Gets all siblings with a defined prefix. Child properties will be not returned.

<p>
<strong>Example:</strong>
</p>

<p>
{@code getSiblings("writer")} will return properties with the keys {@code writer} as well as {@code writerTest}
but not with the key {@code writer.test}. Dots after a prefix ending with an at sign will be not handled as
children. Therefore, {@code getSiblings("level@")} will return a property with the key {@code level@com.test}.
</p>

@param prefix
Case-sensitive prefix for keys
@return All found properties (map will be empty if there are no matching properties)