Buggy code:
@ SuppressWarnings ( "serial" ) public class PratilipiHelper extends ClaymusHelper { public static final Pattern REGEX_HTML_BODY = Pattern . compile ( "(.*?<body\\s.*?>)(.*?)(<//body>.*?)" ) ; public static final String URL_RESOURCE = ClaymusHelper . URL_RESOURCE ; private static final String URL_RESOURCE_STATIC = ClaymusHelper . URL_RESOURCE_STATIC ; protected PratilipiHelper ( HttpServletRequest request ) { } public static PratilipiHelper get ( HttpServletRequest request ) { } public static String getContent ( Long pratilipiId ) { } public static String getContentHtml ( Long pratilipiId ) { } public static String getContentWord ( Long pratilipiId ) { } public static String getContentUrl ( Long pratilipiId ) { } public static String getContentUrl ( Long pratilipiId , boolean dynamic ) { } public static String getContentHtmlUrl ( Long pratilipiId ) { } public static String getContentHtmlUrl ( Long pratilipiId , boolean dynamic ) { } public static String getContentWordUrl ( Long pratilipiId ) { } public static String getContentWordUrl ( Long pratilipiId , boolean dynamic ) { } public List < PratilipiData > createPratilipiDataListFromIdList ( List < Long > pratilipiIdList , boolean includeLanguageData , boolean includeAuthorData , boolean includeGenreData ) { } public List < PratilipiData > createPratilipiDataList ( List < Pratilipi > pratilipiList ) { } public List < PratilipiData > createPratilipiDataList ( List < Pratilipi > pratilipiList , boolean includeLanguageData , boolean includeAuthorData , boolean includeGenreData ) { } public List < PratilipiData > createPratilipiDataList ( List < Pratilipi > pratilipiList , boolean includeLanguageData , boolean includeAuthorData , boolean includeGenreData , boolean includeMetaData ) { } public PratilipiData createPratilipiData ( Long pratilipiId ) { } public PratilipiData createPratilipiData ( Long pratilipiId , boolean includeMetaData ) { } public PratilipiData createPratilipiData ( Pratilipi pratilipi , Language language , Author author , List < Genre > genreList ) { } public PratilipiData createPratilipiData ( Pratilipi pratilipi , Language language , Author author , List < Genre > genreList , boolean includeMetaData ) { DataAccessor dataAccessor = DataAccessorFactory . getDataAccessor ( request ) ; Page pratilipiPage = dataAccessor . getPage ( PRATILIPI . toString ( ) , pratilipi . getId ( ) ) ; if ( genreList == null ) genreList = new ArrayList < Genre > ( 0 ) ; PratilipiData pratilipiData = new PratilipiData ( ) ; pratilipiData . setId ( pratilipi . getId ( ) ) ; pratilipiData . setType ( pratilipi . getType ( ) ) ; pratilipiData . setPageUrl ( pratilipiPage . getUri ( ) ) ; pratilipiData . setPageUrlAlias ( pratilipiPage . getUriAlias ( ) ) ; pratilipiData . setCoverImageUrl ( ( ( ( ( ( PratilipiHelper . URL_RESOURCE_STATIC ) + "pratilipi-cover//300//" ) + ( pratilipi . getId ( ) ) ) + "?" ) + ( pratilipi . getLastUpdated ( ) . getTime ( ) ) ) ) ; pratilipiData . setCoverImageUploadUrl ( ( ( ( PratilipiHelper . URL_RESOURCE ) + "pratilipi-cover//original//" ) + ( pratilipi . getId ( ) ) ) ) ; pratilipiData . setCoverImage300UploadUrl ( ( ( ( PratilipiHelper . URL_RESOURCE ) + "pratilipi-cover//300//" ) + ( pratilipi . getId ( ) ) ) ) ; pratilipiData . setImageContentUploadUrl ( ( ( ( PratilipiHelper . URL_RESOURCE ) + "pratilipi-content//image//" ) + ( pratilipi . getId ( ) ) ) ) ; pratilipiData . setWordContentUplaodUrl ( ( ( ( PratilipiHelper . URL_RESOURCE ) + "pratilipi-content//word//" ) + ( pratilipi . getId ( ) ) ) ) ; pratilipiData . setPdfContentUplaodUrl ( ( ( ( PratilipiHelper . URL_RESOURCE ) + "pratilipi-content//pdf//" ) + ( pratilipi . getId ( ) ) ) ) ; pratilipiData . setReaderPageUrl ( ( ( READ . getUrlPrefix ( ) ) + ( pratilipi . getId ( ) ) ) ) ; pratilipiData . setWriterPageUrl ( ( ( WRITE . getUrlPrefix ( ) ) + ( pratilipi . getId ( ) ) ) ) ; if ( includeMetaData ) pratilipiData . setPublicDomain ( pratilipi . isPublicDomain ( ) ) ; pratilipiData . setTitle ( pratilipi . getTitle ( ) ) ; pratilipiData . setTitleEn ( pratilipi . getTitleEn ( ) ) ; pratilipiData . setLanguageId ( pratilipi . getLanguageId ( ) ) ; pratilipiData . setLanguageData ( createLanguageData ( language ) ) ; pratilipiData . setAuthorId ( pratilipi . getAuthorId ( ) ) ; pratilipiData . setAuthorData ( createAuthorData ( author , null ) ) ; pratilipiData . setPublicationYear ( pratilipi . getPublicationYear ( ) ) ; pratilipiData . setListingDate ( pratilipi . getListingDate ( ) ) ; pratilipiData . setLastUpdated ( pratilipi . getLastUpdated ( ) ) ; pratilipiData . setSummary ( pratilipi . getSummary ( ) ) ; pratilipiData . setIndex ( pratilipi . getIndex ( ) ) ; pratilipiData . setPageCount ( pratilipi . getPageCount ( ) ) ; <START_BUG> pratilipiData . setRelevance ( ( ( pratilipi . getPageCount ( ) ) + ( pratilipi . getRelevanceOffset ( ) ) ) ) ; <END_BUG> pratilipiData . setContentType ( pratilipi . getContentType ( ) ) ; pratilipiData . setState ( pratilipi . getState ( ) ) ; List < Long > genreIdList = new ArrayList ( genreList . size ( ) ) ; List < String > genreNameList = new ArrayList ( genreList . size ( ) ) ; for ( Genre genre : genreList ) { genreIdList . add ( genre . getId ( ) ) ; genreNameList . add ( genre . getName ( ) ) ; } pratilipiData . setGenreIdList ( genreIdList ) ; pratilipiData . setGenreNameList ( genreNameList ) ; return pratilipiData ; } public AuthorData createAuthorData ( Long authorId ) { } public AuthorData createAuthorData ( Author author , Language language ) { } public LanguageData createLanguageData ( Long languageId ) { } public LanguageData createLanguageData ( Language language ) { } public PublisherData createPublisherData ( Long publisherId ) { } public PublisherData createPublisherData ( Publisher publisher , Language language ) { } public EventData createEventData ( Event event ) { } }

Fix:
pratilipiData . setRelevance ( ( ( pratilipi . getReadCount ( ) ) + ( pratilipi . getRelevanceOffset ( ) ) ) ) ;