Source:
private static PropertyHolderConfiguration user() { return new PropertyHolderConfiguration( ConfigurationSource.API, USER_MAPPING_NAME, CollectionHelper.asSet( new SimpleConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "name", String.class, CollectionHelper.asSet( new MetaConstraintBuilder( createAnnotationDescriptor( new NotNullDef() ), ConstraintLocation.Builder.forPropertyHolderProperty() ), new MetaConstraintBuilder( createAnnotationDescriptor( new SizeDef().min( 5 ).max( 10 ) ), ConstraintLocation.Builder.forPropertyHolderProperty() ) ), Collections.emptySet() ), new SimpleConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "email", String.class, CollectionHelper.asSet( new MetaConstraintBuilder( createAnnotationDescriptor( new NotNullDef() ), ConstraintLocation.Builder.forPropertyHolderProperty() ), new MetaConstraintBuilder( createAnnotationDescriptor( new EmailDef() ), ConstraintLocation.Builder.forPropertyHolderProperty() ) ), Collections.emptySet() ), new CascadingConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "address", Collections.emptySet(), Collections.emptySet(), PropertyHolderCascadingMetaDataBuilder.simplePropertyHolder( ADDRESS_MAPPING_NAME, true, Collections.emptyMap() ) ), new SimpleConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "secondaryAddresses", List.class, CollectionHelper.asSet( new MetaConstraintBuilder( createAnnotationDescriptor( new NotNullDef() ), ConstraintLocation.Builder.forPropertyHolderProperty() ), new MetaConstraintBuilder( createAnnotationDescriptor( new SizeDef().max( 2 ) ), ConstraintLocation.Builder.forPropertyHolderProperty() ) ), Collections.emptySet(), PropertyHolderCascadingMetaDataBuilder.propertyHolderContainer( false, List.class, Collections.singletonMap( List.class.getTypeParameters()[0], PropertyHolderCascadingMetaDataBuilder.propertyHolderContainer( ADDRESS_MAPPING_NAME, true, List.class, List.class.getTypeParameters()[0], Collections.emptyMap(), Collections.emptyMap() ) ), Collections.emptyMap() ) ) ), Collections.emptyList() ); }

Target:
private static PropertyHolderConfiguration user() { return new PropertyHolderConfiguration( ConfigurationSource.API, USER_MAPPING_NAME, CollectionHelper.asSet( new SimpleConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "name", String.class, CollectionHelper.asSet( new MetaConstraintBuilder( createAnnotationDescriptor( new NotNullDef() ) ), new MetaConstraintBuilder( createAnnotationDescriptor( new SizeDef().min( 5 ).max( 10 ) ) ) ), Collections.emptySet() ), new SimpleConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "email", String.class, CollectionHelper.asSet( new MetaConstraintBuilder( createAnnotationDescriptor( new NotNullDef() ) ), new MetaConstraintBuilder( createAnnotationDescriptor( new EmailDef() ) ) ), Collections.emptySet() ), new CascadingConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "address", Collections.emptySet(), Collections.emptySet(), PropertyHolderCascadingMetaDataBuilder.simplePropertyHolder( ADDRESS_MAPPING_NAME, true, Collections.emptyMap() ) ), new SimpleConstrainedPropertyHolderElementBuilder( ConfigurationSource.API, "secondaryAddresses", List.class, CollectionHelper.asSet( new MetaConstraintBuilder( createAnnotationDescriptor( new NotNullDef() ) ), new MetaConstraintBuilder( createAnnotationDescriptor( new SizeDef().max( 2 ) ) ) ), Collections.emptySet(), PropertyHolderCascadingMetaDataBuilder.propertyHolderContainer( false, List.class, Collections.singletonMap( List.class.getTypeParameters()[0], PropertyHolderCascadingMetaDataBuilder.propertyHolderContainer( ADDRESS_MAPPING_NAME, true, List.class, List.class.getTypeParameters()[0], Collections.emptyMap(), Collections.emptyMap() ) ), Collections.emptyMap() ) ) ), Collections.emptyList() ); }