* @exception SAMLException if it could not process the
* Element properly, implying that there is an error in the
* sender or in the element definition.
*/
public Subject(NameID nameId, SubjectConfirmation subjectConfirmation){
ObjectFactory factory = new ObjectFactory();
if ( nameId != null)
getContent().add(factory.createNameID(nameId));
if ( subjectConfirmation != null)
getContent().add(factory.createSubjectConfirmation(subjectConfirmation));
}