/*
(non-Javadoc)
@see com.popbill.api.StatementService#getMassPrintURL(java.lang.String, int, java.lang.String[])
320051
@Override
	public String getMassPrintURL(String CorpNum, int ItemCode,
			String[] MgtKeyList) throws PopbillException {
		return getMassPrintURL(CorpNum, ItemCode, MgtKeyList, null);
	}
654462
function getSuperCallAtGivenIndex(ctor, index) {
                if (!ctor.body) {
                    return undefined;
                }
                var statements = ctor.body.statements;
                if (!statements || index >= statements.length) {
                    return undefined;
                }
                var statement = statements[index];
                if (statement.kind === 202 /* ExpressionStatement */) {
                    return ts.isSuperCallExpression(statement.expression) ? statement : undefined;
                }
            }
321258
@Override
	public float getUnitCost(String corpNum) throws PopbillException {
		UnitCostResponse response = httpget("/FAX/UnitCost",
				corpNum, null, UnitCostResponse.class);

		return response.unitCost;
	}
1320144
@Override
	public String resendFAXRN(String corpNum, String requestNum, String sendNum,
			String senderName, String receiveNum, String receiveName,
			Date reserveDT, String userID, String title, String originalFAXrequestNum)
			throws PopbillException {
		
		Receiver receiver = null;
		
		if ( !receiveNum.isEmpty() || !receiveName.isEmpty() ) {
			receiver = new Receiver();
			receiver.setReceiveNum(receiveNum);
			receiver.setReceiveName(receiveName);
			
			return resendFAXRN(corpNum,requestNum, sendNum, senderName, new Receiver[]{receiver}, reserveDT, userID, title, originalFAXrequestNum);
		}
		return resendFAXRN(corpNum,requestNum, sendNum, senderName, null, reserveDT, userID, title, originalFAXrequestNum);			
	}
1000072
@Override
	public List<T> getPluginsFor(S delimiter) {

		Assert.notNull(delimiter, "Delimiter must not be null!");

		return super.getPlugins().stream()//
				.filter(it -> it.supports(delimiter))//
				.collect(Collectors.toList());
	}
1048924
@Override
    public AutoDeny[] getAutoDenyList(String CorpNum) throws PopbillException {
        return httpget("/Message/Denied", CorpNum, null, AutoDeny[].class);
    }
1274532
@Override
	public String getPopUpURL(String CorpNum, int ItemCode, String MgtKey) throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호 가 입력되지 않았습니다.");
	
		return getPopUpURL(CorpNum, ItemCode, MgtKey, null);
	}
641548
@Override
	public Response sendSMS(String CorpNum, String MgtKey, String Sender,
			String Receiver, String Contents)
			throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

		return sendSMS(CorpNum, MgtKey, Sender, Receiver, Contents, null);
	}
459920
@Override
    public String getPopUpURL(String CorpNum, MgtKeyType KeyType,
                              String MgtKey, String UserID) throws PopbillException {
        if (KeyType == null)
            throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
        if (MgtKey == null || MgtKey.isEmpty())
            throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

        URLResponse response = httpget("/Taxinvoice/" + KeyType.name() + "/"
                + MgtKey + "?TG=POPUP", CorpNum, UserID, URLResponse.class);

        return response.url;
    }
787101
@Override
	public String getPopUpURL(String CorpNum, String MgtKey)
			throws PopbillException {

		return getPopUpURL(CorpNum, MgtKey, null);
	}
718295
protected <L extends ListWrapper<T>, T extends BullhornEntity> L handleGetMultipleEntities(Class<T> type, Set<Integer> idList, Set<String> fieldSet, EntityParams params) {
        String ids = idList.stream().map(id -> String.valueOf(id)).collect(Collectors.joining(","));
        Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesForGetMultiple(BullhornEntityInfo.getTypesRestEntityName(type), ids, fieldSet, params);
        String url = restUrlFactory.assembleEntityUrl(params);
        try {
            String response = this.performGetRequest(url, String.class, uriVariables);
            try {
                return restJsonConverter.jsonToEntityDoNotUnwrapRoot(response, BullhornEntityInfo.getTypesListWrapperType(type));
            } catch(RestMappingException onlyOneEntityWasReturned) {
                List<T> list = new ArrayList<T>();
                list.add(restJsonConverter.jsonToEntityUnwrapRoot(response, type));
                return (L) new StandardListWrapper<T>(list);
            }
        } catch(RestApiException noneReturned) {
            List<T> list = new ArrayList<T>();
            return (L) new StandardListWrapper<T>(list);
        }
    }
232342
TextOutline positionMassLabel(TextOutline massLabel, TextOutline elementLabel) {
        final Rectangle2D elementBounds = elementLabel.getBounds();
        final Rectangle2D massBounds = massLabel.getBounds();
        return massLabel.translate((elementBounds.getMinX() - padding) - massBounds.getMaxX(),
                                   (elementBounds.getMinY() - (massBounds.getHeight() / 2)) - massBounds.getMinY());
    }
125852
@Override
	public int doStartTag() throws JspException {

		String string = null;
		Boolean bool = null;
		if (getBase64Expr() != null
				&& (bool = EvalHelper.evalBoolean("base64", getBase64Expr(), this, pageContext)) != null) {
			setBase64(bool);
		}

		if (getSrcExpr() != null
				&& (string = EvalHelper.evalString("srcExpr", getSrcExpr(), this, pageContext)) != null) {

			setSrc(string);
		}

		return super.doStartTag();
	}
1106923
private void parseVarRef() {

        consume(TokenType.DOLLAR, true);
        final String varName = parseVarName();
        mPipeBuilder.addVarRefExpr(getTransaction(), varName);
    }
198377
@Override
    public String getCustomSetString() {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "getCustomSetString");

        String ret = PmiRegistry.getInstrumentationLevelString60();

        if (tc.isEntryEnabled())
            Tr.exit(tc, "getCustomSetString");

        return ret;
    }
1039655
public String getRandomPassword(int countTotal, int countCapitals, int countSpecials) {

        String res = "";

        String[] Normals = ArrayUtils.addAll(ArrayUtils.addAll(Capitals, Letters), Numbers);
        Random rand = new Random();
        for (int i = 0; i < (countTotal - countCapitals - countSpecials); i++) {
            res = res + Normals[rand.nextInt(Normals.length)];
        }
        for (int i = 0; i < countSpecials; i++) {
            int pos = rand.nextInt(res.length());
            res = res.substring(0, pos) + Specials[rand.nextInt(Specials.length)] + res.substring(pos);
        }
        for (int i = 0; i < countCapitals; i++) {
            int pos = rand.nextInt(res.length());
            res = res.substring(0, pos) + Capitals[rand.nextInt(Capitals.length)] + res.substring(pos);
        }
        return res;
    }
665336
@Override
    public Taxinvoice getDetailInfo(String CorpNum, MgtKeyType KeyType,
                                    String MgtKey) throws PopbillException {
        if (KeyType == null)
            throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
        if (MgtKey == null || MgtKey.isEmpty())
            throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

        return httpget("/Taxinvoice/" + KeyType.name() + "/" + MgtKey
                + "?Detail", CorpNum, null, Taxinvoice.class);
    }