public class RepresentationRevisionsResource {
@Autowired
private RecordService recordService;
@GET
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
<BUG>@PostAuthorize("hasPermission"
+ "( "</BUG>
+ " (#globalId).concat('/').concat(#schema).concat('/').concat(returnObject.version) ,"
<BUG>+ " 'eu.europeana.cloud.common.model.Representation', read" + ")")
</BUG>
@ReturnType("eu.europeana.cloud.common.response.RepresentationRevisionResponse")

public class RepresentationRevisionsResource {
@Autowired
private RecordService recordService;
@GET
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@PostAuthorize("returnObject.version != null ? hasPermission"
+ "( "
+ " (#globalId).concat('/').concat(#schema).concat('/').concat(returnObject.version) ,"
+ " 'eu.europeana.cloud.common.model.Representation', read" + ") : true")
@ReturnType("eu.europeana.cloud.common.response.RepresentationRevisionResponse")
