id
stringlengths
7
14
text
stringlengths
1
106k
369176_34
public Response process(ResponseChain responseChain, Response response) { int code = response.getCode(); if (code >= 100 && code <= 299) { return responseChain.next(response); } // 300 range if (code >= 300 && code <= 399) { throw new RedicetionException("Http error " + code + " when executing request"); ...
369176_35
public Response process(ResponseChain responseChain, Response response) { int code = response.getCode(); if (code >= 100 && code <= 299) { return responseChain.next(response); } // 300 range if (code >= 300 && code <= 399) { throw new RedicetionException("Http error " + code + " when executing request"); ...
369176_36
public Response process(ResponseChain responseChain, Response response) { int code = response.getCode(); if (code >= 100 && code <= 299) { return responseChain.next(response); } // 300 range if (code >= 300 && code <= 399) { throw new RedicetionException("Http error " + code + " when executing request"); ...
369176_37
public Response process(ResponseChain responseChain, Response response) { int code = response.getCode(); if (code >= 100 && code <= 299) { return responseChain.next(response); } // 300 range if (code >= 300 && code <= 399) { throw new RedicetionException("Http error " + code + " when executing request"); ...
369176_38
public Response process(ResponseChain responseChain, Response response) { int code = response.getCode(); if (code >= 100 && code <= 299) { return responseChain.next(response); } // 300 range if (code >= 300 && code <= 399) { throw new RedicetionException("Http error " + code + " when executing request"); ...
369176_39
@SuppressWarnings("unchecked") public <T> void marshal(T payload, Writer writer, RestClient client) throws IOException { if(payload.getClass().equals(String.class)) { writer.append(String.class.cast(payload)); return; } Map<String, String> params = (Map<String, String>) payload; int at = 0; for (Entry<String, ...
3699746_0
@Override protected void doStart() throws Exception { ServiceHelper.startServices(processor); register(); }
3699746_1
protected BundleContext getApplicationBundleContext() { return getEndpoint().getApplicationBundleContext(); }
3699746_2
@Override protected void doStop() throws Exception { unregister(); ServiceHelper.stopServices(processor); }
3699746_3
@Override protected void doResume() throws Exception { register(); }
3699746_4
@Override protected void doSuspend() throws Exception { unregister(); }
3699746_5
@Override public void process(final Exchange exchange) throws Exception { Exchange copy = copyExchange(exchange); try { processor.process(copy); } finally { ExchangeHelper.copyResults(exchange, copy); } }
3699746_6
protected Exchange copyExchange(Exchange exchange) { OsgiDefaultEndpoint endpoint = getEndpoint(); Exchange copy = ExchangeHelper.copyExchangeAndSetCamelContext(exchange, endpoint.getCamelContext(), false); copy.setFromEndpoint(endpoint); return copy; }
3699746_7
@Override public Consumer createConsumer(Processor processor) throws Exception { throw new UnsupportedOperationException( String.format("[%s] does not support consumers. Use [%s] instead.", getClass().getName(), getClass().getSuperclass().getName())); }
3699746_8
@Override public Producer createProducer() throws Exception { return new OsgiMulticastProducer( this, getProps(), getAggregationStrategy(), isParallelProcessing(), getExecutorService(), isShutdownExecutorService(), isStreaming(), isStopOnException(), getTimeout(), getOnPrepare()); }
3699746_9
protected Class<?> findClass(String name) throws ClassNotFoundException { return bundle.loadClass(name); }
3706353_0
@Override public void processData(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) { // Get metadata Metadata metadata = parse.getData().getParseMeta(); try { // Initialize the writers // Only on the first execution initWriters(); for(Entry entry : entryList) { CS...
3706353_1
@Override public NutchDocument filter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException { Metadata metadata = parse.getData().getParseMeta(); List<XPathIndexerProperties> xPathIndexerPropertiesList = xpathFilterConfiguration.getXPathIndexerPropertiesList(); for(X...
3706353_2
@Override public NutchDocument filter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException { // Prepare data String realUrl = new String(url.getBytes()).substring(0, url.getLength()); Metadata metadata = parse.getData().getParseMeta(); if (omitIndexingFilterConfigura...
3710234_0
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_1
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_2
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_3
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_4
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_5
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_6
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_7
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_8
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3710234_9
@Override public IRegion calculate(ParsedString argument, int cursorOffsetInDocument) { String arg = argument.getValue(); int cursorOffset = cursorOffsetInDocument - argument.getArgCharPos(); if (cursorOffset == 0) { // at the beginning of the argument, nothing to replace return new Region(c...
3713233_0
@Override public void execute() throws MojoExecutionException { printLogoAndVersion(); String target = System.getProperty("target"); try { MakeTestCommand.config = loadConfig(); MakeTestCommand.main(new String[] { target }); } catch (Exception e) { throw new MojoExecutionException("junithelper make error!", e...
3713233_1
@Override public void execute() throws MojoExecutionException { printLogoAndVersion(); String target = System.getProperty("target"); try { ForceJUnitVersion3Command.config = loadConfig(); ForceJUnitVersion3Command.main(new String[] { target }); } catch (Exception e) { throw new MojoExecutionException("junithe...
3713233_2
@Override public void execute() throws MojoExecutionException { printLogoAndVersion(); String target = System.getProperty("target"); try { ForceJUnitVersion4Command.config = loadConfig(); ForceJUnitVersion4Command.main(new String[] { target }); } catch (Exception e) { throw new MojoExecutionException("junithe...
3713233_3
public static void main(String[] args) throws Exception { config = getUpdatedConfig(config); config.junitVersion = JUnitVersion.version3; boolean hasFirstArg = (args != null && args.length > 0 && args[0] != null); String dirOrFile = hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode; //...
3713233_4
public static void main(String[] args) throws Exception { config = getUpdatedConfig(config); config.junitVersion = JUnitVersion.version3; boolean hasFirstArg = (args != null && args.length > 0 && args[0] != null); String dirOrFile = hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode; //...
3713233_5
public static void main(String[] args) throws Exception { Stdout.p(" _ "); Stdout.p(" / _ ._/_/_/_ /_ _ _"); Stdout.p("(_//_// // / / //_'//_//_'/ "); Stdout.p(" / "); Stdout.p("JUnit Helper version " + Version.get()); Stdout.p(""); i...
3713233_6
public static void main(String[] args) throws Exception { Stdout.p(" _ "); Stdout.p(" / _ ._/_/_/_ /_ _ _"); Stdout.p("(_//_// // / / //_'//_//_'/ "); Stdout.p(" / "); Stdout.p("JUnit Helper version " + Version.get()); Stdout.p(""); i...
3713233_7
public static void main(String[] args) throws Exception { config = getUpdatedConfig(config); config.junitVersion = JUnitVersion.version4; boolean hasFirstArg = (args != null && args.length > 0 && args[0] != null); String dirOrFile = hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode; //...
3713233_8
public static void main(String[] args) throws Exception { config = getUpdatedConfig(config); config.junitVersion = JUnitVersion.version4; boolean hasFirstArg = (args != null && args.length > 0 && args[0] != null); String dirOrFile = hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode; //...
3713233_9
public MethodMetaExtractor initialize(String sourceCodeString) { return initialize(null, sourceCodeString); }
3713238_0
public synchronized String eval(String command) throws SoarException { // Convert CRLFs (Windows line delimiters) to LFs. // (jTcl has an issue with parsing CRLFs: http://kenai.com/bugzilla/show_bug.cgi?id=5817 ) // See {@link TclLineContinuationTest} command = command.replaceAll("\r\n", "\n"); ...
3713238_1
@Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { try { final String exp = Concat.concat(arguments); final String result = ifc.eval(exp); return context.getSymbols().createString(result); } catch (SoarException e) ...
3713238_2
@Override public void write(char[] cbuf, int off, int len) throws IOException { for(Writer w : writers) { w.write(cbuf, off, len); } }
3713238_3
public <T> T get(PropertyKey<T> key) { return getProvider(key).get(); }
3713238_4
@Override public String toString() { return value.toString(); }
3713238_5
@Override public String toString() { return value.toString(); }
3713238_6
@Override public void source(File file) throws SoarException { sourceCommand.source(file.getAbsolutePath()); }
3713238_7
public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); }
3713238_8
public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); }
3713238_9
public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); }
3722315_0
protected void mergeCourse(Course original, Course additional) { if (additional.getCredits() != null) { original.setCredits(additional.getCredits()); } if (additional.getGrade() != null) { original.setGrade(additional.getGrade()); } if (additional.getCourseMeetings() != nul...
3722315_1
protected void mergeCourse(Course original, Course additional) { if (additional.getCredits() != null) { original.setCredits(additional.getCredits()); } if (additional.getGrade() != null) { original.setGrade(additional.getGrade()); } if (additional.getCourseMeetings() != nul...
3722315_2
protected void mergeCourse(Course original, Course additional) { if (additional.getCredits() != null) { original.setCredits(additional.getCredits()); } if (additional.getGrade() != null) { original.setGrade(additional.getGrade()); } if (additional.getCourseMeetings() != nul...
3722315_3
@Override public CoursesByTerm getCoursesByTerm(PortletRequest request, String termCode) { CoursesByTerm summary = null; // iterate over the list of course DAOs for (ICoursesDao dao : courseDaos) { try { CoursesByTerm daoSummary = dao.getCoursesByTerm(request, termCode)...
3722315_4
@Override public String getLocationUrl(Location location, PortletRequest request) { try { final String encodedLocation = URLEncoder.encode(location.getIdentifier(), "UTF-8"); return portalContext.concat("/s/location?id=").concat(encodedLocation); } catch (UnsupportedEncodingException e) { ...
3722315_5
@Override public String getInstructorUrl(Instructor instructor, PortletRequest request) { try { final String encodedUsername = URLEncoder.encode(instructor.getIdentifier(), "UTF-8"); return portalContext.concat("/s/person?id=").concat(encodedUsername); } catch (UnsupportedEncodingException e) { ...
3722315_6
@Override public int compare(Course c1, Course c2) { //check for null Course objects eliminate possibility of NPE f((null == c1) && (null == c2)){ return 0;} if(null == c1){ return -1;} if(null == c2){ return +1;} //Are the Department objects null? if(c1.getCourseDepartment() == c2.getCourseDepartment()) {...
3722315_7
@Override public int compare(Course c1, Course c2) { //check for null Course objects eliminate possibility of NPE f((null == c1) && (null == c2)){ return 0;} if(null == c1){ return -1;} if(null == c2){ return +1;} //Are the Department objects null? if(c1.getCourseDepartment() == c2.getCourseDepartment()) {...
3722315_8
@Override public int compare(Course c1, Course c2) { //check for null Course objects eliminate possibility of NPE f((null == c1) && (null == c2)){ return 0;} if(null == c1){ return -1;} if(null == c2){ return +1;} //Are the Department objects null? if(c1.getCourseDepartment() == c2.getCourseDepartment()) {...
3722315_9
@Override public int compare(Course c1, Course c2) { //check for null Course objects eliminate possibility of NPE f((null == c1) && (null == c2)){ return 0;} if(null == c1){ return -1;} if(null == c2){ return +1;} //Are the Department objects null? if(c1.getCourseDepartment() == c2.getCourseDepartment()) {...
3724388_0
public static void putDoubleValue(ByteBuffer buffer, int bufferType, double value) { if (bufferType == gdalconstConstants.GDT_Float32 || bufferType == gdalconstConstants.GDT_CFloat32) { buffer.putFloat((float) value); } else if (bufferType == gdalconstConstants.GDT_Float64 || bufferType == gdalconstConstants.GDT_...
3724388_1
public static void putDoubleValue(ByteBuffer buffer, int bufferType, double value) { if (bufferType == gdalconstConstants.GDT_Float32 || bufferType == gdalconstConstants.GDT_CFloat32) { buffer.putFloat((float) value); } else if (bufferType == gdalconstConstants.GDT_Float64 || bufferType == gdalconstConstants.GDT_...
3724388_2
public BufferedImage getAsImage() throws TilerException { int width = parameters.size.width; int height = parameters.size.height; int pixels = width * height; int bandCount = bufferBandCount; // image data DataBuffer imgBuffer = null; int imageType = 0, dataType = 0; // create image data for buffer type if (bu...
3724388_3
public static Theme createFromXML(Object source, URL context) { Element element = XMLUtil.getElementFromSource(source); if (element == null) { return null; } BasicTheme theme = new BasicTheme(XMLUtil.getText(element, "ThemeName")); theme.setMenuBar(XMLUtil.getBoolean(element, "MenuBar", false)); theme.setToolB...
3724388_4
public static Theme createFromXML(Object source, URL context) { Element element = XMLUtil.getElementFromSource(source); if (element == null) { return null; } BasicTheme theme = new BasicTheme(XMLUtil.getText(element, "ThemeName")); theme.setMenuBar(XMLUtil.getBoolean(element, "MenuBar", false)); theme.setToolB...
3724388_5
public WmsLayerNode addWmsLayer(WMSLayerInfo layer) { if (layer == null) { return null; } WmsServerNode serverNode = findServerNodeForLayer(layer); if (serverNode == null) { serverNode = new WmsServerNode(layer.getCaps()); addChild(serverNode); } WmsLayerNode wmsLayerNode = new WmsLayerNode(layer, tru...
3724388_6
public WmsLayerNode addWmsLayer(WMSLayerInfo layer) { if (layer == null) { return null; } WmsServerNode serverNode = findServerNodeForLayer(layer); if (serverNode == null) { serverNode = new WmsServerNode(layer.getCaps()); addChild(serverNode); } WmsLayerNode wmsLayerNode = new WmsLayerNode(layer, tru...
3724388_7
public WmsLayerNode addWmsLayer(WMSLayerInfo layer) { if (layer == null) { return null; } WmsServerNode serverNode = findServerNodeForLayer(layer); if (serverNode == null) { serverNode = new WmsServerNode(layer.getCaps()); addChild(serverNode); } WmsLayerNode wmsLayerNode = new WmsLayerNode(layer, tru...
3724388_8
public WmsLayerNode addWmsLayer(WMSLayerInfo layer) { if (layer == null) { return null; } WmsServerNode serverNode = findServerNodeForLayer(layer); if (serverNode == null) { serverNode = new WmsServerNode(layer.getCaps()); addChild(serverNode); } WmsLayerNode wmsLayerNode = new WmsLayerNode(layer, tru...
3724388_9
public static String stripSequenceNumber(String name) { if (isBlank(name) || !Character.isDigit(name.charAt(name.length()-1))) { return name; } return stripSequenceNumber(name.substring(0, name.length()-1)); }
3726486_0
public static UpdateInventoryRequest readUpdateInventoryRequest(InputStream in) throws IOException { try (InputStreamReader inputStreamReader = new InputStreamReader(in, UTF_8); BufferedReader br = new BufferedReader(inputStreamReader); JsonReader reader = new JsonReader(br)) { Gson gson =...
3726486_1
public static String calculateSHA1(File resourceFile) throws IOException { return calculateHash(resourceFile, HashAlgorithm.SHA1); }
3726486_2
public static String calculateSHA1(File resourceFile) throws IOException { return calculateHash(resourceFile, HashAlgorithm.SHA1); }
3726486_3
public static String calculateHash(File resourceFile, HashAlgorithm algorithm) throws IOException { return new HashCalculator().calculateHash(resourceFile, algorithm); }
3726486_4
public static String calculateHash(File resourceFile, HashAlgorithm algorithm) throws IOException { return new HashCalculator().calculateHash(resourceFile, algorithm); }
3726486_5
public String calculateSHA1(File resourceFile) throws IOException { return calculateHash(resourceFile, HashAlgorithm.SHA1); }
3726486_6
public String calculateSHA1(File resourceFile) throws IOException { return calculateHash(resourceFile, HashAlgorithm.SHA1); }
3726486_7
public HashCalculationResult calculateSuperHash(File file) throws IOException { // Ignore files smaller than 0.5kb long fileSize = file.length(); if (fileSize <= FILE_MIN_SIZE_THRESHOLD) { logger.debug("Ignored file " + file.getName() + " (" + FileUtils.byteCountToDisplaySize(fileSize) + "): minimum...
3726486_8
public static DependencyHintsInfo getHints(String filename) { DependencyHintsInfo hints = null; if (StringUtils.isNotBlank(filename)) { if (filename.matches(PORTABLE_EXECUTABLES_PATTERN)) { hints = getPortableExecutableHints(filename); } } return hints; }
3726486_9
public static DependencyHintsInfo getHints(String filename) { DependencyHintsInfo hints = null; if (StringUtils.isNotBlank(filename)) { if (filename.matches(PORTABLE_EXECUTABLES_PATTERN)) { hints = getPortableExecutableHints(filename); } } return hints; }
3728202_0
@Override public EntityMetadata getMetadataByEntityId(String entityId) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("entityid", entityId); final Collection metadataAsStrings = CollectionUtils.collect(Arrays.asList(Metadata.values()), new Transformer() { @Override public...
3728202_1
@Override public List<String> getEntityIdsByMetaData(Metadata key, String value) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("key", key.val()); parameters.put("value", value); URI signedUri; try { signedUri = sign("findIdentifiersByMetadata", parameters); if (LOG.i...
3728202_2
@Override public List<String> getAllowedSps(String idpentityid) { return getAllowedSps(idpentityid, null); }
3728202_3
@Override public List<EntityMetadata> getSpList() { Map<String, String> parameters = new HashMap<String, String>(); final Collection metadataAsStrings = CollectionUtils.collect(Arrays.asList(Metadata.values()), new Transformer() { @Override public Object transform(Object input) { return ((Metadata) in...
3728202_4
@Override public ARP getArp(String entityId) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("entityid", entityId); URI signedUri = null; try { signedUri = sign("arp", parameters); if (LOG.isTraceEnabled()) { LOG.trace("Signed Janus-request is: {}", signedUri); ...
3728202_5
@Override public ARP getArp(String entityId) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("entityid", entityId); URI signedUri = null; try { signedUri = sign("arp", parameters); if (LOG.isTraceEnabled()) { LOG.trace("Signed Janus-request is: {}", signedUri); ...
3728202_6
@Override public ARP getArp(String entityId) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("entityid", entityId); URI signedUri = null; try { signedUri = sign("arp", parameters); if (LOG.isTraceEnabled()) { LOG.trace("Signed Janus-request is: {}", signedUri); ...
3728202_7
public static ARP fromRestResponse(Map response) { ARP arp = new ARP(); arp.setNoArp(false); arp.setNoAttrArp(false); if (response.isEmpty()) { arp.setNoArp(true); return arp; } arp.setName((String) response.get("name")); arp.setDescription((String) response.get("description")); final Object att...
3728202_8
public CustomMappingJacksonHttpMessageConverter() { super(); getObjectMapper().enable(DeserializationConfig.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) .setSerializationInclusion(JsonSerialize.Inclusion.NON_NULL); }
3728202_9
@Override @SuppressWarnings("unchecked") public Person findPerson(String identifier) { Filter query = getFilter(identifier); List<Person> search = findPersons(query); if (CollectionUtils.isEmpty(search)) { return null; } if (search.size() > 1) { throw new RuntimeException("Found more then one LDAP ent...
3728381_0
@Override public int available() throws IOException { if (currentBlock == null) { return memoryLayout.getMaxSize(); } else { return (memoryLayout.getLastDataPage() - currentPage + 1) * memoryLayout.getBytesPerPage() + (memoryLayout.getBytesPerPage() - currentByte); } }
3728381_1
public LockControlTlv() { }
3728381_2
@Override public void format(Record... records) { try { formatCapabilityBlock(); writeNdefMessage(records); } catch (IOException e) { throw new NfcException(e); } }
3728381_3
@Override public void makeReadOnly() { assertWritable(); assertFormatted(); setLockBytes(); writable = false; }
3728381_4
@Override public void writeNdefMessage(Record... records) { lastReadRecords = null; assertWritable(); assertFormatted(); byte[] bytes = convertNdefMessage(records); writeBufferOnTag(bytes); }
3728381_5
@Override public void writeNdefMessage(Record... records) { lastReadRecords = null; assertWritable(); assertFormatted(); byte[] bytes = convertNdefMessage(records); writeBufferOnTag(bytes); }
3728381_6
@Override public List<Record> readNdefMessage() { assertFormatted(); if (lastReadRecords != null) { return lastReadRecords; } else { TypeLengthValueReader reader = new TypeLengthValueReader(new TagInputStream(memoryLayout, readerWriter)); convertRecords(reader); return lastReadRecords; } }
3728381_7
@Override public List<Record> readNdefMessage() { assertFormatted(); if (lastReadRecords != null) { return lastReadRecords; } else { TypeLengthValueReader reader = new TypeLengthValueReader(new TagInputStream(memoryLayout, readerWriter)); convertRecords(reader); return lastReadRecords; } }
3728381_8
public byte[] getPage(int pageNo) { return memory[pageNo]; }
3728381_9
protected MfClassicNdefOperations createNdefOperations(ApduTag tag, MemoryLayout memoryLayout) { boolean formatted = false; boolean writable = false; MfClassicReaderWriter readerWriter = new AcrMfClassicReaderWriter(tag, memoryLayout); TagInfo tagInfo = null; try { tagInfo = readerWriter.getTagInfo(); if (read...
3732883_0
@Override public Page createPage(PageId pageId) throws EntityAlreadyExistsException { if (getPage(pageId) != null) { throw new EntityAlreadyExistsException("Cannot create page. Page " + pageId + " already exists."); } if (getSite(pageId.getSiteId()) == null) { throw new EntityNotFoundExcepti...