TableName jarName = jarName(server, jar);
DDLFunctions ddl = server.getDXL().ddlFunctions();
if (undeploy != 0) {
new SQLJJarDeployer(context, jarName).undeploy();
}
ddl.dropSQLJJar(server.getSession(), jarName);
server.getRoutineLoader().checkUnloadSQLJJar(server.getSession(), jarName);
}
private static TableName jarName(ServerSession server, String jar) {
int idx = jar.lastIndexOf('.');