*/
public StorageFile getJarFile(String schemaName, String sqlName)
throws StandardException {
SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, null, true);
FileInfoDescriptor fid = dd.getFileInfoDescriptor(sd,sqlName);
if (fid == null)
throw StandardException.newException(SQLState.LANG_FILE_DOES_NOT_EXIST, sqlName,schemaName);
long generationId = fid.getGenerationId();
ContextManager cm = ContextService.getFactory().getCurrentContextManager();
FileResource fr = af.getTransaction(cm).getFileHandler();
String externalName = JarUtil.mkExternalName(
fid.getUUID(), schemaName, sqlName, fr.getSeparatorChar());
return fr.getAsFile(externalName, generationId);
}