if (className.equals(PortalException.class.getName())) {
return new PortalException();
}
if (className.equals(SystemException.class.getName())) {
return new SystemException();
}
if (className.equals("com.liferay.docs.guestbook.EntryEmailException")) {
return new com.liferay.docs.guestbook.EntryEmailException();
}