Get envelope element quite

@param m
@return
974429
public static Element getEnvelope(SOAPMessage m){
        try{
            return m.getSOAPPart().getEnvelope();
        }catch (Exception e){
            throw S1SystemError.wrap(e);
        }
    }
680736
public T get(final int key) {
		int index = ((key & 0x7FFFFFFF) % elementKeys.length);

		long m = elementKeys[index];
		if (key == m) {
			return elementValues[index];
		}

		return null;
	}
211872
protected List<CmsDialogElement> getElementList() {

        if (m_elementList == null) {
            m_elementList = CmsDialogElements.computeElements(getCms(), m_page, getParamTempfile(), getElementLocale());
        }
        return m_elementList;
    }
691196
public static MonomerStore getMonomerStore(Element rootElement)
      throws MonomerException, IOException {
    MonomerStore monomerStore = new MonomerStore();
    Element monomerListElement = rootElement.getChild("Monomers");
    if (monomerListElement != null) {
      @SuppressWarnings("unchecked")
      List<Element> elementList = monomerListElement.getChildren("Monomer");

      for (Element monomerElement : elementList) {
        Monomer m = MonomerParser.getMonomer(monomerElement);
        monomerStore.addMonomer(m);
      }
    }
    return monomerStore;
  }
1065568
public MessageInfo getMessageInfo(String element)
    {
        MessageInfo recMessageInfo = (MessageInfo)this.getRecord(MessageInfo.MESSAGE_INFO_FILE);
        recMessageInfo.setKeyArea(MessageInfo.CODE_KEY);
        recMessageInfo.getField(MessageInfo.CODE).setString(element);
        try {
            if (recMessageInfo.seek(null))
            {
                return recMessageInfo;
            }
        } catch (DBException e) {
            e.printStackTrace();
        }
        return null;
    }
205550
public Collection<String> readableProps(Object m) {
		LinkedList<String> res = new LinkedList<String>();
		for(PropertyDescriptor pd : info(m).getPropertyDescriptors()) {
			Method getter = pd.getReadMethod();
			String prop = pd.getName();
			if(getter != null && ! skipProps.contains(prop)) {
				res.add(prop);
			}
		}
		return res;
	}
1353401
public static String getTextValue(Element element) {
        String ret = "";
        String textContent = element.getTextContent();
        if (textContent != null && !textContent.equals("")) {
            ret = textContent;
        } else if (element.hasAttribute("title")) {
            ret = element.getAttribute("title");
        } else if (element.hasAttribute("alt")) {
            ret = element.getAttribute("alt");
        }
        if (ret.length() > TEXT_CUTOFF) {
            return ret.substring(0, TEXT_CUTOFF);
        } else {
            return ret;
        }
    }
169171
public static ArrayList<String> listPackageContents(Map<String, Object> m) {
        ArrayList<String> acc = new ArrayList<String>();
        for (Map.Entry<String, Object> entry : m.entrySet()) {
            if (isValidPackageContent(entry.getValue())) {
                acc.add(entry.getKey());
            }
        }
        return acc;
    }
606317
protected String safeGetPostbackPayload(MessageEnvelope envelope) {
		if (envelope != null && envelope.getPostback() != null
				&& envelope.getPostback().getPayload() != null) {
			return envelope.getPostback().getPayload();
		}
		return "";
	}
176644
String getRequiredElem()
  {
		if (m_requiredFound == null)
			return null;
		Enumeration elems = m_requiredFound.elements();
		String s = "";
		boolean first = true;
		while (elems.hasMoreElements())
		{
			if (first)
				first = false;
			else
			 s = s + ", ";
			s = s + (String)elems.nextElement();
		}
    return s;
  }
161115
public EnvelopeInfo getEnvelopeInfo(int envelopeIndex) throws InvalidProtocolBufferException {

        try {

            EnvelopeInfo ret;

            if (isFiltered()) {

                switch (filteredBlock.getFilteredTransactions(envelopeIndex).getType().getNumber()) {
                    case Common.HeaderType.ENDORSER_TRANSACTION_VALUE:
                        ret = new TransactionEnvelopeInfo(this.filteredBlock.getFilteredTransactions(envelopeIndex));
                        break;
                    default: //just assume base properties.
                        ret = new EnvelopeInfo(this.filteredBlock.getFilteredTransactions(envelopeIndex));
                        break;
                }

            } else {

                EnvelopeDeserializer ed = EnvelopeDeserializer.newInstance(block.getBlock().getData().getData(envelopeIndex), block.getTransActionsMetaData()[envelopeIndex]);

                switch (ed.getType()) {
                    case Common.HeaderType.ENDORSER_TRANSACTION_VALUE:
                        ret = new TransactionEnvelopeInfo((EndorserTransactionEnvDeserializer) ed);
                        break;
                    default: //just assume base properties.
                        ret = new EnvelopeInfo(ed);
                        break;

                }

            }
            return ret;

        } catch (InvalidProtocolBufferRuntimeException e) {
            throw e.getCause();
        }

    }
277177
public CmsContainerElementBean getCurrentElement(ServletRequest req) throws CmsException {

        CmsJspStandardContextBean sCBean = CmsJspStandardContextBean.getInstance(req);
        CmsContainerElementBean element = sCBean.getElement();
        if (element == null) {
            throw new CmsException(
                Messages.get().container(
                    Messages.ERR_READING_ELEMENT_FROM_REQUEST_1,
                    sCBean.getRequestContext().getUri()));
        }
        return element;
    }
924334
private double getValue(HashMap m, String key) {
        try {
            return Double.parseDouble(getValueOr(m, key, ""));
        } catch (Exception e) {
            return Double.MIN_VALUE;
        }
    }
1208227
def envelope(self):
		""""""
		if not self.sender and not self.author:
			raise ValueError("Unable to determine message sender; no author or sender defined.")

		return self.sender or self.author[0]
312925
protected String safeGetRecipientId(MessageEnvelope envelope) {
		if (envelope != null && envelope.getRecipient() != null
				&& envelope.getRecipient().getId() != null) {
			return envelope.getRecipient().getId();
		}
		return "";
	}
504454
public UserCustomResultSet query(GeometryEnvelope envelope) {
		return query(envelope.getMinX(), envelope.getMinY(),
				envelope.getMaxX(), envelope.getMaxY());
	}
230240
public static String getPackage(String element) {
        Preconditions.checkNotNull(element,"argument 'element' can not be null");
        return element.substring(0, element.lastIndexOf('.'));
    }