protected Package definePackage(String name,String specTitle,String specVersion,String specVendor,String implTitle,String implVersion,String implVendor,URL sealBase) throws IllegalArgumentException {
synchronized (definedPackages) {
    if (getPackage(name) != null) {
      throw new IllegalArgumentException("Package " + name + "has been already defined.");
    }
    Package pkg=new Package(this,name,specTitle,specVersion,specVendor,implTitle,implVersion,implVendor,sealBase);
    definedPackages.put(name,pkg);
    return pkg;
  }
}

protected Package definePackage ( String name , String specTitle , String specVersion , String specVendor , String implTitle , String implVersion , String implVendor , URL sealBase ) throws IllegalArgumentException { synchronized ( definedPackages ) { if ( getPackage ( name ) != null ) { throw new IllegalArgumentException ( "Package " + name + "has been already defined." ) ; } Package pkg = new Package ( this , name , specTitle , specVersion , specVendor , implTitle , implVersion , implVendor , sealBase ) ; definedPackages . put ( name , pkg ) ; return pkg ; } }
define a new package using the specified information .
