code: public String resolveOrientDBRestApiUrl()
  	{
  		OrientDbWebApplication app = OrientDbWebApplication.get();
  		OServer server = app.getServer();
  		if(server!=null)
  		{
  			OServerNetworkListener http = server.getListenerByProtocol(ONetworkProtocolHttpAbstract.class);
  			if(http!=null)
  			{
  				return "http://"+http.getListeningAddress(true);
  			}
  		}
  		return null;
  	}
docs: Resolve OrientDB REST API URL to be used for OrientDb REST bridge
  @return OrientDB REST API URL