response.getAllowedMethods().add( Method.GET );
if( Iterables.matchesAny( LinksUtil.withRel( "delete" ), resourceValue.commands().get() ) )
{
response.getAllowedMethods().add( Method.DELETE );
}
if( Iterables.matchesAny( LinksUtil.withRel( "update" ), resourceValue.commands().get() ) )
{
response.getAllowedMethods().add( Method.PUT );
}
// Response according to what client accepts