return value;
}
private ManagedRepositoryConfiguration readManagedRepositoryConfiguration( String prefix, Registry registry )
{
ManagedRepositoryConfiguration value = new ManagedRepositoryConfiguration();
String location = registry.getString( prefix + "location", value.getLocation() );
value.setLocation( location );
boolean releases = registry.getBoolean( prefix + "releases", value.isReleases() );
value.setReleases( releases );
boolean blockRedeployments = registry.getBoolean( prefix + "blockRedeployments", value.isBlockRedeployments() );
value.setBlockRedeployments( blockRedeployments );
boolean snapshots = registry.getBoolean( prefix + "snapshots", value.isSnapshots() );
value.setSnapshots( snapshots );
boolean scanned = registry.getBoolean( prefix + "scanned", value.isScanned() );
value.setScanned( scanned );
String refreshCronExpression = registry.getString( prefix + "refreshCronExpression", value.getRefreshCronExpression() );
value.setRefreshCronExpression( refreshCronExpression );
int retentionCount = registry.getInt( prefix + "retentionCount", value.getRetentionCount() );
value.setRetentionCount( retentionCount );
int daysOlder = registry.getInt( prefix + "daysOlder", value.getDaysOlder() );
value.setDaysOlder( daysOlder );
boolean deleteReleasedSnapshots = registry.getBoolean( prefix + "deleteReleasedSnapshots", value.isDeleteReleasedSnapshots() );
value.setDeleteReleasedSnapshots( deleteReleasedSnapshots );
String id = registry.getString( prefix + "id", value.getId() );
value.setId( id );
String name = registry.getString( prefix + "name", value.getName() );
value.setName( name );
String layout = registry.getString( prefix + "layout", value.getLayout() );
value.setLayout( layout );
String indexDir = registry.getString( prefix + "indexDir", value.getIndexDir() );
value.setIndexDir( indexDir );
return value;
}