private org.rhq.core.pluginapi.content.version.PackageVersions loadPackageVersions() {
if (this.versions == null) {
ResourceType resourceType = resourceContext.getResourceType();
String pluginName = resourceType.getPlugin();
File dataDirectoryFile = resourceContext.getDataDirectory();
dataDirectoryFile.mkdirs();
String dataDirectory = dataDirectoryFile.getAbsolutePath();
log.trace("Creating application versions store with plugin name [" //$NON-NLS-1$
+ pluginName + "] and data directory [" + dataDirectory //$NON-NLS-1$
+ "]"); //$NON-NLS-1$
this.versions = new PackageVersions(pluginName, dataDirectory);