in src/main/java/org/apache/maven/plugins/ear/EjbRef.java [56:74]
public EjbRef( String description, String name, String type, String lookupName )
{
if ( name == null || name.isEmpty() )
{
throw new IllegalArgumentException( EJB_NAME + " in " + EJB_REF + " element cannot be null." );
}
else if ( ( type == null || type.isEmpty() ) && ( lookupName == null || lookupName.isEmpty() ) )
{
throw new IllegalArgumentException( EJB_TYPE + " in " + EJB_REF + " element cannot be null if no "
+ EJB_LOOKUP_NAME + " was specified." );
}
this.description = description;
this.name = name;
this.type = type;
this.lookupName = lookupName;
}