public static ServiceInstance11 toServiceInstance11 ( ModelServiceInstance11 modelInstance ) { if ( modelInstance == null ) throw new NullPointerException ( ) ; Map < String , String > meta = new HashMap <> ( ) ; if ( modelInstance . getMetadata ( ) != null ) { for ( Entry < String , String > en : modelInstance . getMetadata ( ) . entrySet ( ) ) { meta . put ( en . getKey ( ) , en . getValue ( ) ) ; } } return new ServiceInstance11 ( modelInstance . getServiceName ( ) , modelInstance . getInstanceId ( ) , modelInstance . getUri ( ) , modelInstance . isMonitorEnabled ( ) , modelInstance . getStatus ( ) , modelInstance . getAddress ( ) , modelInstance . getPort ( ) , meta ) ; }
convert v1 . 1 modelServiceInstance to serviceInstance