class SimpleRelation implements Relation , Externalizable {
    private String id;
    private String name;
    private Map<String,Object> expands;


    public static SimpleRelation of(RelationEntity entity){
        return of(entity.getId(),entity.getName(),entity.getExpands());
    }

    @Override
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeUTF(id);
        out.writeUTF(name);
        SerializeUtils.writeObject(expands,out);
    }

    @Override
    @SuppressWarnings("all")
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {<FILL_FUNCTION_BODY>}
}

        id = in.readUTF();
        name = in.readUTF();
        expands = (Map<String,Object>)SerializeUtils.readObject(in);
    
<no_super_class>