public CommandServiceInfo(){
  metadata.put(VERSION,CURRENT_VERSION);
  IProduct product=Platform.getProduct();
  if (product != null) {
    metadata.put(CLIENT_NAME,product.getName());
    metadata.put(CLIENT_SYMBOLIC_NAME,product.getId());
    Bundle bundle=product.getDefiningBundle();
    if (bundle != null) {
      Version version=bundle.getVersion();
      metadata.put(CLIENT_VERSION,String.format("%s.%s.%s",version.getMajor(),version.getMinor(),version.getMicro()));
      metadata.put(CLIENT_BUILD_ID,version.toString());
    }
  }
}

public CommandServiceInfo ( ) { metadata . put ( VERSION , CURRENT_VERSION ) ; IProduct product = Platform . getProduct ( ) ; if ( product != null ) { metadata . put ( CLIENT_NAME , product . getName ( ) ) ; metadata . put ( CLIENT_SYMBOLIC_NAME , product . getId ( ) ) ; Bundle bundle = product . getDefiningBundle ( ) ; if ( bundle != null ) { Version version = bundle . getVersion ( ) ; metadata . put ( CLIENT_VERSION , String . format ( "%s.%s.%s" , version . getMajor ( ) , version . getMinor ( ) , version . getMicro ( ) ) ) ; metadata . put ( CLIENT_BUILD_ID , version . toString ( ) ) ; } } }
construct a new command service information object .
