String type;
TMLPortlet parentPortlet = getTMLContext().getportlet();
if (parentPortlet == null) {
if (getTMLContext().isbotrequest()) {
throw new TMLSilentCancelException();
}
else {
throw new TMLException("Current user has no portlet registration");
}
}