boolean kBaseExists = false;
boolean kSessionExists = false;
boolean kContainerExists = false;
KBase kBase = null;
KSession kSession = null;
if ( ip.getType() instanceof Class && ( KieSession.class.isAssignableFrom( (Class ) ip.getType() ) || StatelessKieSession.class.isAssignableFrom( (Class ) ip.getType() ) ) ) {
kSession = ip.getAnnotated().getAnnotation( KSession.class );
kSessionExists = true;
} else if ( ip.getType() instanceof Class && KieBase.class.isAssignableFrom( (Class ) ip.getType() ) ) {
kBaseExists = true;