if (mCarFile == null)
{
CarResources cRes = CarResources.getInstance();
URL classUrl = cRes.findResource(mClassFilePath);
if (classUrl == null)
throw new PortalException(
"Unable to locate CAR containing compiled " +
"controller class file '" + mClassFilePath + "'.");
String carPath = classUrl.toExternalForm();
carPath = carPath.substring("jar:file:".length());
carPath = carPath.substring(0, carPath.indexOf('!'));
mCarFile = new File(carPath);
if (!mCarFile.exists())
throw new PortalException("Unable to locate CAR '" + carPath
+ "'. Resources can't be deployed.");
}
return mCarFile;
}