private Object createSipFactory(String objectClassName) throws PeerUnavailableException {
  if (objectClassName == null) {
    throw new NullPointerException();
  }
  try {
    Class peerObjectClass=Class.forName(getPathName() + "." + objectClassName);
    Object newPeerObject=peerObjectClass.newInstance();
    return (newPeerObject);
  }
 catch (  Exception e) {
    String errmsg="The Peer Factory: " + getPathName() + "."+ objectClassName+ " could not be instantiated. Ensure the Path Name has been set.";
    throw new PeerUnavailableException(errmsg,e);
  }
}

private Object createSipFactory ( String objectClassName ) throws PeerUnavailableException { if ( objectClassName == null ) { throw new NullPointerException ( ) ; } try { Class peerObjectClass = Class . forName ( getPathName ( ) + "." + objectClassName ) ; Object newPeerObject = peerObjectClass . newInstance ( ) ; return ( newPeerObject ) ; } catch ( Exception e ) { String errmsg = "The Peer Factory: " + getPathName ( ) + "." + objectClassName + " could not be instantiated. Ensure the Path Name has been set." ; throw new PeerUnavailableException ( errmsg , e ) ; } }
private utility method used by all create methods to return an instance of the supplied object .
