protected String makePrefixFromOsgiProperties ( ) { final String port = System . getProperty ( "org.osgi.service.http.port" ) ; if ( port == null ) { return null ; } final StringBuilder sb = new StringBuilder ( ) ; sb . append ( "http://" ) . append ( discoverHostname ( ) ) ; if ( ! "80" . equals ( port ) ) { sb . append ( ' ' ) . append ( port ) ; } return sb . toString ( ) ; }
Make the prefix by guessing the port from the OSGi settings