new OtpErlangObject[] { new OtpErlangAtom("attributes"),
new OtpErlangAtom(ErlangRunner.getName(file, ErlangRunner.ERL.BEAM)) },
"Could not load attributes of " + file.getName());
OtpErlangList listOfDepTuples = (OtpErlangList) response.elementAt(1);// the first element is 'ok'
for (OtpErlangObject tup : listOfDepTuples.elements()) {
OtpErlangTuple tuple = (OtpErlangTuple) tup;
OtpErlangObject name = tuple.elementAt(0);
if (name instanceof OtpErlangAtom && ((OtpErlangAtom) name).atomValue().equals("behaviour")) {// found the OTP behaviour attribute
OtpErlangObject value = tuple.elementAt(1);
if (value instanceof OtpErlangList) // list of behaviours