Session session = getSession();
// output predefined about properties
ExtendedProperties props =
ExtendedPropertiesUtils.loadFromOverlappingResources( "META-INF/cyclopsgroup/jmxterm.properties",
getClass().getClassLoader() );
ValueOutputFormat format = new ValueOutputFormat( 2, showDescription, true );
for ( Object entryObject : props.subset( "jmxterm.about" ).entrySet() )
{
Map.Entry<String, Object> entry = (Map.Entry<String, Object>) entryObject;
format.printExpression( session.output, entry.getKey(), entry.getValue(), null );
}
// output Java runtime properties
for ( Map.Entry<Object, Object> entry : System.getProperties().entrySet() )
{
String keyName = entry.toString();
if ( keyName.startsWith( "java." ) )
{
format.printExpression( session.output, keyName, entry.getValue(), null );
}
}
}