if (_impl != null) {
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (messageImpl != null) {
    public static void error(String msg) {        if (_impl != null) {            // log in verbose mode because message is appended as a problem, and will be             // logged at the end at error level            _impl.log("ERROR: "+msg, MSG_VERBOSE);        } else {            System.err.println(msg);        }        _problems.add("\tERROR: "+msg);        _errors.add(msg);    }