String linesep = System.getProperty("line.separator");
String linesep = SystemProperties.getProperty("line.separator");
  public String toString()  {        String linesep = System.getProperty("line.separator");    StringBuffer sb = new StringBuffer("ProtectionDomain (").append(linesep);        if (code_source == null)      sb.append("CodeSource:null");    else      sb.append(code_source);    sb.append(linesep);    if (classloader == null)      sb.append("ClassLoader:null");    else      sb.append(classloader);    sb.append(linesep);    sb.append("Principals:");    if (principals != null && principals.length > 0)      {        sb.append("[");        Principal pal;        for (int i = 0; i < principals.length; i++)          {            pal = principals[i];            sb.append("'").append(pal.getName())                .append("' of type ").append(pal.getClass().getName());            if (i < principals.length-1)              sb.append(", ");          }        sb.append("]");      }    else      sb.append("none");    sb.append(linesep);    if (!staticBinding) // include all but dont force loading Policy.currentPolicy      if (Policy.isLoaded())        sb.append(Policy.getCurrentPolicy().getPermissions(this));      else // fallback on this one's permissions        sb.append(perms);        else        sb.append(perms);    return sb.append(linesep).append(")").append(linesep).toString();    }