if (jpah != null)
{
if (jpah.getAssociationType().isRequired() && !isSynchronizing())
{
JetspeedPrincipalAssociationType assType = jpah.getAssociationType();
throw new SecurityException(SecurityException.PRINCIPAL_ASSOCIATION_REQUIRED.createScoped(assType.getFromPrincipalType().getName(),
assType.getAssociationName(),
assType.getToPrincipalType().getName()));
}
if (from.isTransient() || from.getId() == null)
{
JetspeedPrincipal pfrom = jpah.getManagerFrom().getPrincipal(from.getName());
if (pfrom == null)