private void policy(PolicyBean policy) {
        try {
            policy.setId(null);
            policy.setDefinition(policyDefIndex.get(policy.getDefinition().getId()));
            storage.createPolicy(policy);
        } catch (StorageException e) {
            error(e);
        }
    }
private void policy ( PolicyBean policy ) { try { policy . setId ( null ) ; policy . setDefinition ( policyDefIndex . get ( policy . getDefinition ( ) . getId ( ) ) ) ; storage . createPolicy ( policy ) ; } catch ( StorageException e ) { error ( e ) ; } }
@param policy