if(ejbJar!=null)
{
testCase = super.getEjb(descriptor.getName(),ejbJar);
Principal principal = testCase.getPrincipal();
if(principal == null)
{
result.notApplicable(smh.getLocalString(getClass().getName()+".notApplicable",
"NOT APPLICABLE [AS-EJB ejb] : principal element not defined"));
}
else
{
String principalName = principal.getName();
if(principalName.length()==0)
{
result.failed(smh.getLocalString(getClass().getName()+".failed",
"FAILED [AS-EJB principal] : name cannot be an empty String"));
}