Adhesive elastic plastic contact: theory and numerical simulation