newIndex = skipWhiteSpaces( newIndex ) + 1;
}
else
newIndex = skipWhiteSpaces( classNameIndices[ 1 ] ) + 1;
final Permission permission = new Permission();
permission.setClassName( policyText.substring( classNameIndices[ 0 ], classNameIndices[ 1 ] ) );
if ( targetNameIndices != null )
permission.setTargetName( policyText.substring( targetNameIndices[ 0 ] + 1, targetNameIndices[ 1 ] - 1 ) );
if ( actionsIndices != null )
permission.setActions( policyText.substring( actionsIndices[ 0 ] + 1, actionsIndices[ 1 ] - 1 ) );
if ( signedByIndices != null )
permission.setSignedBy( policyText.substring( signedByIndices[ 0 ] + 1, signedByIndices[ 1 ] - 1 ) );
grantEntry.getPermissionList().add( permission );
}
newIndex = skipWhiteSpaces( newIndex ) + 1; // index of '}' + 1 (comments skipped)
if ( peekNextNonWhiteSpaceChar( newIndex ) != PolicyEntry.TERMINATOR_CHAR )