Support for java-main container