ProfileLocator locator = Profiler.createLocator();
locator.createFromPath(path);
Profile profile = Profiler.getProfile(locator);
if (profile != null)
{
PSMLDocument doc = profile.getDocument();
if (doc != null)
{
Portlets rootSet = doc.getPortlets();
/*
There is no way to do a check on a Portlets element, only a Entry element.
This can easily be added, but Im just under a release right now and it
could be perceived as too destabilizing -- david