Update stub generator to provide fallback handling for JBoss cart