@SuppressWarnings("unchecked") public static <T>T fromPem(String pem) throws Exception {
  StringReader sr=new StringReader(pem);
  PEMReader pw=new PEMReader(sr);
  Object object=pw.readObject();
  return (T)object;
}

@ SuppressWarnings ( "unchecked" ) public static < T > T fromPem ( String pem ) throws Exception { StringReader sr = new StringReader ( pem ) ; PEMReader pw = new PEMReader ( sr ) ; Object object = pw . readObject ( ) ; return ( T ) object ; }
returns an object from a pem string representation
