jcon.addThrowNew(NullPointerException.class,
JavaSource.getQuoted("The supplied object must not be null."));
jcon.addEndIf();
for (int i = 0; i < pInterfaces.length; i++) {
if (pInterfaces[i].isMandatory) {
jcon.addIf("!(o instanceof ", pInterfaces[i].getInterface(), ")");
jcon.addThrowNew(ClassCastException.class,
JavaSource.getQuoted("The supplied instance of "),
" + o.getClass().getName() + ",
JavaSource.getQuoted(" is not implementing "),
" + ", pInterfaces[i].getInterface(), ".class.getName()");