package com.resilient.service.pictureService; import com.resilient.ProvenanceInterceptor; import com.resilient.annotations.*; import javax.interceptor.Interceptors; import javax.jws.WebMethod; import javax.jws.WebService; @WebService @javax.ejb.Stateless @Resilient(version = "2.4.0") @Interceptors(ProvenanceInterceptor.class) public class ResilientPictureService implements IPictureService{ @WebMethod @Stateless @Deterministic @Validity(endDate = "2015-01-01T23:59:59.00Z") @Return(format="fmt/13") public byte[] convertJpeg2Png(@FileFormat(format="fmt/41") byte[] image) throws PictureServiceException { //here comes your implementation ... } @WebMethod @Stateless @Deterministic @Validity(endDate = "2015-01-01T23:59:59.00Z") @Return(format="fmt/13") @Demo public byte[] convertJpeg2PngDemo(@FileFormat(format="fmt/41") byte[] image) throws PictureServiceException { //here comes your implementation ... } }